package com.qikux.entity;

import com.qikux.annotation.Column;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class ResourceComment extends Entity{

    /**
     * 评论者id
     */
    @Column("user_id")
    private Long userId;

    /**
     * 评论时间
     */
    @Column("com_time")
    private LocalDateTime comTime;

    /**
     * 评论内容
     */
    @Column("com_content")
    private String comContent;

    /**
     * 资源id
     */
    @Column("res_id")
    private Long resId;

    /**
     * 评论星级
     */
    private int stars;

    /**
     * 评论状态
     */
    @Column("com_status")
    private int comStatus;

    /**
     * 未通过原因
     */
    private String reason;
}
